﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;
using PMSA.Framework.Database;

/// <summary>
/// Summary description for CGroupProductLevelParentFacade
/// </summary>
public class CGroupProductLevelParentFacade
{
    private GroupProductLevelParentDAL db = new GroupProductLevelParentDAL();
    public IList<GroupProductLevelParent> List(int id)
    {
        IList<GroupProductLevelParent> list = null;
        DataSet ds = new DataSet();
        ds = db.List(id);
        if (ds != null && ds.Tables.Count > 0)
        {
            list = CDb.MapList<GroupProductLevelParent>(ds.Tables[0]);
        }

        return list;
    }
}